# 用户登录
for _ in range(3):
    username =input()
    password =input()
    if(username=='admin' or username=='administrator')and password=='012345':
        print("登录成功")
        break
    else:
        print("登录失败")
else:
    print("登录次数超过三次，登录失败")
